-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 (go/v4): e2e test: Removed Prometheus dependency #4529
🐛 (go/v4): e2e test: Removed Prometheus dependency #4529
Conversation
Welcome @anshuman-agarwala! |
Hi @anshuman-agarwala. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
@@ -30,14 +30,10 @@ import ( | |||
|
|||
var ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that is great 🎉
We just need either remove here: https://github.com/kubernetes-sigs/kubebuilder/blob/master/testdata/project-v4/Makefile#L67
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change need to be done here:
kubebuilder/pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go
Lines 143 to 147 in 87b0139
# TODO(user): To use a different vendor for e2e tests, modify the setup under 'tests/e2e'. | |
# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally. | |
# Prometheus and CertManager are installed by default; skip with: | |
# - PROMETHEUS_INSTALL_SKIP=true | |
# - CERT_MANAGER_INSTALL_SKIP=true |
Also, can you please ensure that we have all squashed in the same commit so we can merge this one?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need change the template kubebuilder/pkg/plugins/golang/v4/scaffolds/internal/templates/makefile.go
And then run make install && make generate
It will re-generate all samples and docs with this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
beb5185
to
bf51b38
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/ok-to-test
Thank you a lot 🎉 |
No Problems!
Could you help me with how I can fix this? |
The tutorials in the documentation are built from the sample projects under To ensure consistency, we update these samples based on PR changes and verify them using e2e tests. The additional code and modifications on top of the scaffolded content are implemented in: The Issue:The error occurs because Prometheus integration is enabled in the Kustomize files, but Prometheus itself is not installed. Possible Solutions:✅ Option A: With this approach, when we run ✅ Option B: Personally, Option A seems preferable since it keeps this scenario as a documented example for end users. WDYT? 🚀 |
Hi @camilamacedo86 |
Good catch! 🥇 Getting Started SampleFor the Why?
How?
CronJob and MultiVersion SamplesThe So, to add E2E test we can:
Where?We should create a new file to store constants for In this way, we cover more cases in the tests and provide more examples for end users. WDYT? |
d12da83
to
3fc26d5
Compare
Great work 🥇 |
3fc26d5
to
b13dbb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anshuman-agarwala, camilamacedo86 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #4527